import request from '@/config/axios'

/**
 * 商家后台商家信息相关接口
 * 商家信息
 */
export const adminBusinessInfoApi = () => {
  return request.get({ url: '/admin/business/info' })
}

/**
 * 会员开通续费记录列表
 */
export const adminBusinessMemberFeeBillApi = (params) => {
  return request.get({ url: '/admin/business/memberFeeBill/page', params })
}

/**
 * 次卡购买记录列表
 */
export const adminBusinessMemberCardBillApi = (params) => {
  return request.get({ url: '/admin/business/memberCardBill/page', params })
}

/* ---------------------------------- 商家后台商家会员相关接口 start -------------------------------------------- */

/**
 * 会员费配置列表
 */
export const adminBusinessMemberFeeApi = (params) => {
  return request.get({ url: '/admin/business/memberFee/page', params })
}

/**
 * 会员续费网银支付
 */
export const adminBusinessMemberFeePayApi = (data) => {
  return request.post({ url: '/admin/business/memberFee/pay', data })
}

/* ---------------------------------- 商家后台商家会员相关接口 end -------------------------------------------- */

/* ---------------------------------- 商家后台商家次卡相关接口 start -------------------------------------------- */

/**
 * 次卡购买列表
 */
export const adminBusinessMemberCardApi = (params) => {
  return request.get({ url: '/admin/business/memberCard/page', params })
}

/**
 * 购买次卡网银支付
 */
export const adminBusinessMemberCardPayApi = (data) => {
  return request.post({ url: '/admin/business/memberCard/pay', data })
}

/* ---------------------------------- 商家后台商家次卡相关接口 end -------------------------------------------- */

/* ---------------------------------- 商家后台商家补贴金相关接口 start -------------------------------------------- */

/**
 * 网银支付的充值补贴金记录
 */
export const adminBusinessSubsidyPageApi = (params) => {
  return request.get({ url: '/admin/business/subsidy/page', params })
}

/**
 * 补贴预充值，返回手续费，支付金额等
 */
export const adminBusinessSubsidyPreRechargeApi = () => {
  return request.get({ url: '/admin/business/subsidy/preRecharge' })
}

/**
 * 充值补贴金
 */
export const adminBusinessSubsidyRechargeApi = (data) => {
  return request.post({ url: '/admin/business/subsidy/recharge', data })
}

/**
 * 商家充值申请
 */
export const adminBusinessRechargeApplyApi = (data) => {
  return request.post({ url: '/admin/business/rechargeApply/apply', data })
}

/**
 * 充值申请列表
 */
export const adminBusinessRechargeApplyPageApi = (params) => {
  return request.get({ url: '/admin/business/rechargeApply/page', params })
}

/* ---------------------------------- 商家后台商家补贴金相关接口 end -------------------------------------------- */
